<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="renderer" content="webkit">
		<title></title>
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/layui/css/layui.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/common.css">
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/gloab.css" />
		<link rel="stylesheet" type="text/css" charset="UTF-8" href="/resource/css/formTemplate.css" />
	</head>

	<body>
		<!-- 描述：tableTemplate模板 -->
		<div class="xbzx-form-list p-r">
			<!-- 描述：tableTemplate搜索区域 -->
			<div class="xbzx-search-form clearfix">
				<form id="page_for" class="layui-form layui-form-pane xbzx-form" action="/cpinstitution" method="get">
					<div class="form-group clearfix">
						<div class="form_item_left f-l">
							<div class="form_item_col">
								<div class="layui-form-item">
									<label class="layui-form-label">标题关键字</label>
									<div class="layui-input-inline">
										<input type="hidden" name="page" value="${page }"/>
										<input type="text" name="name" lay-verify="required" placeholder="请输入20字以内..." autocomplete="off" class="layui-input" value="${m.name}">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">发布部门</label>
									<div class="layui-input-inline">
										 <select name="department">
								      		<option value="">---请选择---</option>
									      	<c:forEach items="${deplist }" var="s">
										        <option value="${s.dname}">${s.dname }</option>
									      	</c:forEach>
									      </select>
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label">发布日期</label>
									<div class="layui-input-inline">
										<input type="text" name="createtime" lay-verify="required" placeholder="yyyy-MM-dd" autocomplete="off" readonly="readonly" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${m.createtime}" />' class="layui-input" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD'})">
									</div>
								</div>
							</div>
						</div>
						<div class="form_item_right f-r">
							<div class="search-button">
								<button class="layui-btn layui-btn-danger" type="submit" xbzx-data-type="check" id="check"><i class="layui-icon">&#xe615;</i><span>检索</span></button>
								<button class="layui-btn layui-btn-danger" type="button" xbzx-data-type="clear" id="clear" xbzx-data-type="clear"><i class="layui-icon">&#xe640;</i><span>清空</span></button>
							</div>
						</div>
					</div>
				</form>
			</div>
			<!-- 描述：tableTemplate常用按钮区域 -->
			<div class="xbzx-tool-btn">
				<blockquote class="layui-elem-quote clearfix">
					<div class="tool-btn-box">
						<div class="tool-group-left f-l">
							<a class="layui-btn" href="javascript:;" xbzx-data-type="add" data-url="/cpinstitution/add" data-rel="sys_add" tab-title="新增"><i class="layui-icon">&#xe608;</i><span>增加</span></a>
							<a class="layui-btn" href="javascript:;" xbzx-data-type="edit" data-url="/cpinstitution/add" data-rel="sys_edit" tab-title="编辑"><i class="layui-icon">&#xe642;</i><span>编辑</span></a>
							<a class="layui-btn" href="javascript:;" xbzx-data-type="delete" data-url="/cpinstitution/del" data-rel=" " tab-title="确定要删除？"><i class="layui-icon">&#xe640;</i><span>删除</span></a>
							<a class="layui-btn" href="javascript:;" xbzx-data-type="edit" data-url="/cpinstitution/detail" data-rel="sys_detail" tab-title="查看详情"><i class="layui-icon">&#xe649;</i><span>查看详情</span></a>
						</div>
						<!-- <div class="tool-group-left f-r">
							<a class="layui-btn" href="javascript:;" xbzx-data-type="danger"><i class="layui-icon">&#x1006;</i><span>谨慎操作</span></a>
						</div> -->
					</div>
				</blockquote>
			</div>
			<!-- 描述：tableTemplate表格区域 -->
			<div class="xbzx-table">
				<div class="layui-form">
					<table class="layui-table">
						<colgroup>
							<col width="1%">
							<col width="5%">
							<col width="15%">
							<col width="10%">
							<col width="20%">
							<col width="15%">
							<col width="15%">
							<col width="20%">
						</colgroup>
						<thead>
							<tr>
								<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
								<th class="t-c">序号</th>
			                    <th>制度文件名称</th>
			                    <th>发布部门</th>
			                    <th>收阅部门</th>
			                    <th>有效期</th>
			                    <th>签署人</th>
			                    <th>发生日期</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${objectlist.getRecords()}" var="s"  varStatus="c">
								<tr data-id="${s.id}">
									<td><input xbzx-data-id="b" type="checkbox" name="" lay-skin="primary" lay-filter="choose"></td>
									<td>${c.count}</td>
			                        <td>${s.name }</td>
			                        <td>${s.department}</td>
			                        <td>${s.sydepart}</td>
			                        <td>${s.yxqdate}</td>
			                        <td>${s.qsr}</td>
			                        <td>${s.createtime}</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			<!-- 描述：tableTemplate分页区域 -->
			<div class="xbzx-pagination p-f" data-page="${objectlist.getPages()}" id="page"></div>
		</div>
		<script src="/resource/layui/layui.js" charset="utf-8" type="text/javascript"></script>
		<script src="/resource/js/jquery/jquery-1.9.1.js" charset="utf-8" type="text/javascript"></script>

		<!-- 描述:单独iframeJS模块  -->
		<script type="text/javascript">
			window.onload = function() {
				layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use('xbzx-cms-common'); //加载公共Js文件入口

				layui.config({
					base: '/resource/js/xbzx_modules/' //xbzx模块目录
				}).use('xbzx-cms-form'); //加载formJs文件入口 
			}

			layui.use(['form','layer'], function(){
				var form = layui.form();
			});
			$('select[name="department"]').val("${m.department}");
		</script>
	</body>

</html>
